package com.molyfun.parents.rest.bean;

import com.molyfun.parents.impl.IHorizontalTag;
import com.molyfun.parents.rest.BaseResponse;
import com.molyfun.parents.utils.TimeUtils;

import java.util.List;

/**
 * Created by william(liuchao.hit@gmail.com).
 * Date:10/31/16.
 */
public class ReportBriefListResponse extends BaseResponse {

    private ReportBriefBeanList data;

    public ReportBriefBeanList getData(){
        return data;
    }

    public static class ReportBriefBeanList {

        private int offset;
        private int limit;
        private int total;
        private int size;
        private int pages;
        private int current;
        private boolean searchCount;
        private List<ReportBriefBean> records;
        private Object orderByField;
        private boolean asc;
        private int offsetCurrent;

        public int getOffset() {
            return offset;
        }

        public void setOffset(int offset) {
            this.offset = offset;
        }

        public int getLimit() {
            return limit;
        }

        public void setLimit(int limit) {
            this.limit = limit;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public int getSize() {
            return size;
        }

        public void setSize(int size) {
            this.size = size;
        }

        public int getPages() {
            return pages;
        }

        public void setPages(int pages) {
            this.pages = pages;
        }

        public int getCurrent() {
            return current;
        }

        public void setCurrent(int current) {
            this.current = current;
        }

        public boolean isSearchCount() {
            return searchCount;
        }

        public void setSearchCount(boolean searchCount) {
            this.searchCount = searchCount;
        }

        public List<ReportBriefBean> getRecords() {
            return records;
        }

        public void setRecords(List<ReportBriefBean> records) {
            this.records = records;
        }

        public Object getOrderByField() {
            return orderByField;
        }

        public void setOrderByField(Object orderByField) {
            this.orderByField = orderByField;
        }

        public boolean isAsc() {
            return asc;
        }

        public void setAsc(boolean asc) {
            this.asc = asc;
        }

        public int getOffsetCurrent() {
            return offsetCurrent;
        }

        public void setOffsetCurrent(int offsetCurrent) {
            this.offsetCurrent = offsetCurrent;
        }
    }

    public static class ReportBriefBean implements IHorizontalTag {


        /**
         * id : 8a2d92635828f36201582966866e0074
         * begindatetime : 1478102400000
         * enddatetime : 1478188800000
         * commentall : 656556565
         * reportcontentlist : null
         */

        private String id;
        private long begindatetime;
        private long enddatetime;
        private String commentall;
//        private Object reportcontentlist;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        @Override
        public String getName() {
            return TimeUtils.getDateByTimeMillis(getBegindatetime()) + "~" + TimeUtils.getDateByTimeMillis(getEnddatetime());
        }

        public long getBegindatetime() {
            return begindatetime;
        }

        public void setBegindatetime(long begindatetime) {
            this.begindatetime = begindatetime;
        }

        public long getEnddatetime() {
            return enddatetime;
        }

        public void setEnddatetime(long enddatetime) {
            this.enddatetime = enddatetime;
        }

        public String getCommentall() {
            return commentall;
        }

        public void setCommentall(String commentall) {
            this.commentall = commentall;
        }

//        public Object getReportcontentlist() {
//            return reportcontentlist;
//        }
//
//        public void setReportcontentlist(Object reportcontentlist) {
//            this.reportcontentlist = reportcontentlist;
//        }
    }

}
